//
//  SecondViewController.m
//  UI09_作业
//
//  Created by dllo on 16/6/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SecondViewController.h"
#import "LTView.h"
@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor yellowColor];
    self.navigationItem.title = @"第二页";
    self.navigationController.navigationBar.translucent = NO;
    [self createView];
    [self createButton];
}
- (void)createView{
    LTView *ltView = [[LTView alloc] initWithFrame:CGRectMake(10, 80, 300, 70) Text:@"用户名"];
    [self.view addSubview:ltView];
    [ltView release];
    
    LTView *ltView1 = [[LTView alloc] initWithFrame:CGRectMake(10, 150, 300, 70) Text:@"密码"];
    [self.view addSubview:ltView1];
    [ltView1 release];
    
}
- (void)createButton{
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    [button setTitle:@"登录" forState:UIControlStateNormal];
    button.frame = CGRectMake(50, 250, 80, 30);
    [button setTintColor:[UIColor blueColor]];
    [self.view addSubview:button];
    
    
    UIButton *button1 = [UIButton buttonWithType:UIButtonTypeSystem];
    [button1 setTitle:@"注册" forState:UIControlStateNormal];
    button1.frame = CGRectMake(160, 250, 80, 30);
    [button1 setTintColor:[UIColor blueColor]];
    [self.view addSubview:button1];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
